package com.health.trans.annotation;

import com.health.trans.util.CustomRepositoryFactoryBean;
import com.health.trans.util.CustomRepositoryImpl;
import org.springframework.context.annotation.Import;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

import java.lang.annotation.*;

/**
 * JPA配置导入
 * @author nqlz
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Documented
@JpaEntityScan
@Import({BatchRegister.RegistrarJpa.class})
@EnableJpaRepositories(repositoryFactoryBeanClass = CustomRepositoryFactoryBean.class,repositoryBaseClass = CustomRepositoryImpl.class)
public @interface EnableBatch {
    String[] value() default {};
    String[] repositoryPackages() default {};

    Class<?>[] repositoryPackageClasses() default {};

    String[] entityPackages() default {};

    Class<?>[] entityPackageClasses() default {};

}
